function _instanceof (L, R) {
  let O = R.prototype
  L = L.__proto__
  while (true) {
    if (null === L) return false
    if (O === L)  return true
    L = L.__proto__
  }
}
console.log(_instanceof([], String))
console.log(_instanceof([], Array))
